<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>使用 layDate 独立版</title>
</head>
<body>
 
<input type="text" id="test1">
 
<script src="../node_modules/layui/src/layui.js"></script>
<script>
//执行一个laydate实例
layui.use('laydate',function(){
    var laydate = layui.laydate;
    laydate.render({
        elem: '#test1' //指定元素
    });
});
</script>
</body>
</html>